load("//:build_variables.bzl", "COPTS")

package(
    default_visibility = ["//:android_cuttlefish"],
)

cc_library(
    name = "metrics_protos",
    hdrs = [
        "cf_metrics_protos.h",
    ],
    copts = COPTS,
    strip_include_prefix = "//cuttlefish",
    deps = [
        ":metrics_cf_log_proto",
        ":metrics_cf_metrics_event_proto",
        ":metrics_clientanalytics_proto",
        ":metrics_common_proto",
        "@protobuf",
    ],
)

proto_library(
    name = "cf_log_proto",
    srcs = ["cf_log.proto"],
    deps = [
        ":cf_metrics_event_proto",
        ":common_proto",
    ],
)

cc_proto_library(
    name = "metrics_cf_log_proto",
    deps = [":cf_log_proto"],
)

proto_library(
    name = "cf_metrics_event_proto",
    srcs = ["cf_metrics_event.proto"],
    deps = [
        ":common_proto",
    ],
)

cc_proto_library(
    name = "metrics_cf_metrics_event_proto",
    deps = [":cf_metrics_event_proto"],
)

proto_library(
    name = "clientanalytics_proto",
    srcs = ["clientanalytics.proto"],
)

cc_proto_library(
    name = "metrics_clientanalytics_proto",
    deps = [":clientanalytics_proto"],
)

proto_library(
    name = "common_proto",
    srcs = ["common.proto"],
)

cc_proto_library(
    name = "metrics_common_proto",
    deps = [":common_proto"],
)
